package com.java.action;

import java.util.List;

import com.java.service.IDeptService;
import com.opensymphony.xwork2.ActionSupport;
import com.training.pojo.chengshu.UDept;
import com.training.pojo.chengshu.UUser;

public class QueryByStatement extends ActionSupport {
	private static final long serialVersionUID = 1L;

	private IDeptService deptService;

	private List<UDept> list1;
	private List<UUser> list;
	private List<UDept> deptlist;
	private UDept dept1;
	

	public String execute(){
		System.out.println("querystatementtttttt"+dept1.getDeptname()+"+++"+dept1.getDeptid()+"++++++"+dept1.getUUser().getUid());
		list = deptService.list();
		list1 = deptService.list1();
		System.out.println("3333333"+list.size()+"222222");
		deptlist = deptService.select(dept1);
		System.out.println("queryendddddd");
		return "success";
	}


	public IDeptService getDeptService() {
		return deptService;
	}


	public void setDeptService(IDeptService deptService) {
		this.deptService = deptService;
	}




	public List<UDept> getList1() {
		return list1;
	}


	public void setList1(List<UDept> list1) {
		this.list1 = list1;
	}


	public List<UUser> getList() {
		return list;
	}


	public void setList(List<UUser> list) {
		this.list = list;
	}


	public List<UDept> getDeptlist() {
		return deptlist;
	}


	public void setDeptlist(List<UDept> deptlist) {
		this.deptlist = deptlist;
	}


	public UDept getDept1() {
		return dept1;
	}


	public void setDept1(UDept dept1) {
		this.dept1 = dept1;
	}


	
}
